<?php
include('./db_config.php');
session_start();
$link = mysql_connect($db_host, $db_user, $db_password) or die ("Connection failed due to: " . mysql_error());
mysql_select_db ($db_name) or die("Selection failed due to: " . mysql_error());
$query = "DELETE FROM employment where pk='" . $_POST['pk'] . "'";
mysql_query($query) or die("Query failed due to: " . mysql_error());
header("Location: ./panel.php?rpost=success");
exit;
?>